﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.ForumResponse>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    נלך - פורום
    <%= Model.category.title %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <% Html.RenderPartial("ForumSearchControl"); %>
    <h2>
        פורום
        <%= Model.category.title %></h2>
    <h4 class="forum">
        <%= Model.category.description %></h4>

    <script language="javascript" type="text/javascript">

        
        function CreateResponse(id) {
            var e = document.getElementById("response" + id);

            e.style.display = "block";
        }
        function CloseResponse(id) {
            var e = document.getElementById("response" + id);

            e.style.display = "none";
        }
    </script>

    <div class="tguva"><%= Html.ActionLink("הוסף נושא", "CreateSubject", new {id = Model.category.id  })%></div>
    
    <ul class="forum">
        <% foreach (var item in Model.responses)
           { %>
        <li>
                <h5>
                <%= Html.ActionLink(item.title, "ListResponseForum", "Forum", new {id = item.id }, null)%></h5>
                
                <p class="forumName">
          <span><b><%= item.name %></b>,  <%=nelech.Views.Shared.Code.Utils.GetHebrewJewishDateString(item.date, true) %></span>
          <%= item.see %> צפיות</p>
           </li>
        <%} %></ul>
   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="publishTop" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Right" runat="server">
</asp:Content>
